<script type="text/javascript">
<!--
    $(function()
    {
        var template = $.format($('#contact_template').val());

        var insertContact = function(contact)
        {
            var array = contact.split(':');
            var code = array[0];
            var name = array[1];
            var content = $(template(code, name));
            $('#contacts').append(content);
        }

        var qqstr = '{$comqq}';

        if (qqstr.length > 0)
        {
            var qqlist = qqstr.split(',');

            for ( var i = 0; i < qqlist.length; i++)
            {
                insertContact(qqlist[i]);
            }
        }
    });
//-->
</script>
<textarea style="display: none" id="contact_template">
    <li>
        <a href="tencent://message/?uin={0}&Site={0}&Menu=yes" class="image" title="{0}">
            <img src="http://wpa.qq.com/pa?p=1:{0}:4" alt="{0}" border="0">
        </a>
        <a href="tencent://message/?uin={0}&Site={0}&Menu=yes" title="{0}">{1}</a>
    </li>
</textarea>
<div style="width: 100%;">
    <img src="{$tpl_images}/kf.jpg" width="249" height="101" />
    <ul class="contacts" id="contacts">
    </ul>
</div>